﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel

{

    /// <summary>
    /// 广告类型
    /// </summary>
   public class EM_Advertisement
    {
        public EM_Advertisement()
        {
            ID = Guid.NewGuid();

            OpeAD = true;

            ADTime = 10;
        }
        public Guid ID { get; set; }

        [StringLength(10)]
        /// <summary>
        /// 委托方
        /// </summary>
        public string? Client { get; set; }
        /// <summary>
        /// 委托时间
        /// </summary>
        public DateTime ClientTime { get; set; }


        /// <summary>
        /// ‌广告收费
        /// </summary>
        public decimal Charge { get; set; }

        /// <summary>
        /// 是否启动广告
        /// </summary>

        public bool OpeAD { get; set; }

        /// <summary>
        /// 广告时间
        /// </summary>
        public int ADTime { get; set; }

    }
}
